﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VsRtl_CSharp.Delegate
{
    public delegate int TheMethod(int a, int b);

    public class VsRtl_Delegate
    {
        public int Sum(int one, int two)
        {
            return one + two;
        }

        public int Sub(int one, int two)
        {
            return one - two;
        }

        /*
         static void Main(string[] args)
        {
            VsRtl_Delegate d = new VsRtl_Delegate();
            TheMethod TheDel;
            TheDel = d.Sum;
            int r = TheDel(10, 20);

            TheDel = d.Sub;

            int val = TheDel(10, 20);
        }
         */
    }
}
